<cfquery datasource="#application.dsn#" name="getversions">
DELETE FROM versions
WHERE versionid=#versionid#  
</cfquery>

<CFLOCATION url="versions_list.cfm?msg=item has been deleted">
